//导入vue-router包
import VueRouter from 'vue-router'
//导入对应的路由组件
import homeComponent from './component/homeComponent.vue'
import memberComponent from './component/memberComponent.vue'
import shopcarComponent from './component/shopcarComponent.vue'
import searchComponent from './component/searchComponent.vue'
var router=new VueRouter({
	routes:[
		{path:'/',redirect:'/home'},
		{path:'/home',component:homeComponent},
		{path:'/member',component:memberComponent},
		{path:'/shopcar',component:shopcarComponent},
		{path:'/search',component:searchComponent}
	],
	linkActiveClass:"mui-active"  //替代router-link-active
})
//把router暴露
export default router